Skip to content

Deprecate clearAll in favor of removeAll #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

BoD
Copy link
Collaborator

@BoD BoD commented Apr 23, 2025

No description provided.

@BoD BoD requested a review from martinbonnin as a code owner April 23, 2025 10:58
@@ -2,6 +2,8 @@

PUT_CHANGELOG_HERE

- Deprecate `ApolloStore`/`NormalizedCache` `clearAll()` in favor of `removeAll()` for consistency with `remove()`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that in Java and Kotlin collections, removeAll() takes a list of items to remove, while clear() clears the whole collection

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair! Oh well clearAll() isn't that bad after all.

@BoD BoD closed this Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants